package com.ymm.lulutong.domain;

import com.ymm.lulutong.response.ShipperInfoResponse;
import com.ymm.lulutong.utils.Result;

import java.util.List;

/**
 * @author guorui
 */
public interface ShipperFriendDomainService {
    /**
     * 寻找好友
     *
     * @param phoneNumber 好友手机号
     */
    Result<ShipperInfoResponse> findShipper(String phoneNumber);

    /**
     * 发送好友邀请
     */
    Result<Boolean> sendFriendInvitation(Long shipperIdfrom, Long shipperIdTo);

    /**
     * 回应好友邀请
     */
    Result<Boolean> responseToFriendInvitation(Long relationshipId, Boolean accept);

    /**
     * 根据货主Id找到其所有好友
     */
    Result<List<ShipperInfoResponse>> getFriendsByShipperId(Long shipperId);

}
